<!DOCTYPE html>
<html lang="en" class="app">

<head>
    <meta charset="utf-8"/>
    <title>{{ \Auth::user()->name }}-管理后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="/public/theme/js/jPlayer/jplayer.flat.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/bootstrap.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/animate.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/font-awesome.min.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/simple-line-icons.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/font.css" type="text/css"/>
    <link rel="stylesheet" href="/public/theme/css/app.css" type="text/css"/>
    @yield('css')
    <!--[if lt IE 9]>
    <script src="/public/theme/js/ie/html5shiv.js"></script>
    <script src="/public/theme/js/ie/respond.min.js"></script>
    <script src="/public/theme/js/ie/excanvas.js"></script>
    <![endif]-->
</head>

<body class="">
<section class="vbox">
    <header class="bg-white-only header header-md navbar navbar-fixed-top-xs">
        <div class="navbar-header aside bg-info dk">
            <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html">
                <i class="icon-list"></i>
            </a>
            <a href="{{ route('index') }}" class="navbar-brand text-lt">
                <i class="icon-rocket ico"></i>
                <span class="hidden-nav-xs m-l-sm" style="font-family: 'Comic Sans MS'">User</span>
            </a>
            <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".user">
                <i class="icon-settings"></i>
            </a>
        </div>
        <ul class="nav navbar-nav hidden-xs">
            <li>
                <a href="#nav,.navbar-header" data-toggle="class:nav-xs,nav-xs" class="text-muted">
                    <i class="fa fa-indent text"></i>
                    <i class="fa fa-dedent text-active"></i>
                </a>
            </li>
        </ul>
        <div class="navbar-right ">
            <ul class="nav navbar-nav m-n hidden-xs nav-user user">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle bg clear" data-toggle="dropdown">
                        <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                        <img src="{{ $logo or '/miya.png' }}" alt="{{ config('set.web_name') }}">
                        </span>
                        {{ \Auth::user()->name }}<b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight">
                        <li>
                            <span class="arrow top"></span>
                            <a href="{{ route('index') }}">网站首页</a>
                        </li>
                        <li>
                            <a href="profile.html">账号管理</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="{{ route('user.index.logout') }}" >登出</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </header>
    <section>
        <section class="hbox stretch">
            <!-- .aside -->
            <aside class="bg-black dk aside hidden-print" id="nav">
                <section class="vbox">
                    <section class="w-f-md scrollable">
                        <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0"
                             data-size="10px" data-railOpacity="0.2">
                            <!-- nav -->
                            <nav class="nav-primary hidden-xs">
                                <ul class="nav bg clearfix">
                                    <li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">
                                        账号管理
                                    </li>
                                    <li>
                                        <a href="{{ route('user.index.index') }}">
                                            <i class="icon-disc icon text-success"></i>
                                            <span>账号信息</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="{{ route('user.index.logout') }}" data-target="#content"
                                           data-el="#bjax-el"
                                           data-replace="true">
                                            <i class="icon-social-youtube icon  text-primary"></i>
                                            <span>登出后台</span>
                                        </a>
                                    </li>
                                    <li class="m-b hidden-nav-xs"></li>
                                </ul>
                                <ul class="nav" data-ride="collapse">
                                    <li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">
                                        内容管理
                                    </li>
                                    <li>
                                        <a href="#" class="auto">
                                            <span class="pull-right text-muted">
                                            <i class="fa fa-angle-left text"></i>
                                            <i class="fa fa-angle-down text-active"></i>
                                            </span>
                                            <i class="icon-social-dropbox icon text-danger"></i>
                                            <span>发布信息</span>
                                        </a>
                                        <ul class="nav dk text-sm">
                                            @if(!empty($chunklist))
                                                @foreach($chunklist as $id => $chunk)
                                                    <li>
                                                        <a href="{{ route('user.chunk.info',$id) }}" class="auto">
                                                            <i class="fa fa-angle-right text-xs"></i>
                                                            <span>{{ $chunk }}</span>
                                                        </a>
                                                    </li>
                                                @endforeach
                                            @endif
                                        </ul>
                                    </li>
                                </ul>
                                <ul class="nav text-sm">
                                    <li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">
                                        其他操作
                                    </li>
                                    <li>
                                        <a href="#">
                                            <i class="icon-link icon"></i>
                                            <span>其他操作</span>
                                        </a>
                                    </li>
                                </ul>
                            </nav>
                            <!-- / nav -->
                        </div>
                    </section>
                    <footer class="footer hidden-xs no-padder text-center-nav-xs">
                        <div class="bg hidden-xs ">
                            <div class="dropdown dropup wrapper-sm clearfix">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <span class="thumb-sm avatar pull-left m-l-xs">
                                    <img src="{{ $logo or '/miya.png' }}" class="" alt="{{ config('set.web_name') }}">
                                    <i class="on b-black"></i>
                                    </span>
                                    <span class="hidden-nav-xs clear">
                                    <span class="block m-l">
                                    <strong class="font-bold text-lt">{{ \Auth::user()->name }}</strong>
                                    <b class="caret"></b>
                                    </span>
                                    <span class="text-muted text-xs block m-l">{{ \Auth::user()->email }}</span>
                                    </span>
                                </a>
                                <ul class="dropdown-menu animated fadeInRight aside text-left">
                                    {{--<li>--}}
                                    {{--<span class="arrow bottom hidden-nav-xs"></span>--}}
                                    {{--<a href="{{ route('admin.index.set') }}">配置信息</a>--}}
                                    {{--</li>--}}
                                    <li>
                                        <a href="docs.html">帮助信息</a>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <a href="{{ route('user.index.logout') }}">登出</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </footer>
                </section>
            </aside>
            <!-- /.aside -->
            <section id="content">
                <section class="vbox">
                    <header class="header bg-light dk">
                        <p>{{ $frame['title'] or '123' }}</p>
                    </header>
                    <section class="scrollable wrapper">
                        <div class="row">
                            <div class="col-lg-12">
                                <!-- 页面面包屑 S -->
                                <ul class="breadcrumb">
                                    <li><a href="{{ route('index') }}"><i class="fa fa-home"></i> 首页</a></li>
                                    <li><a href="#"><i class="fa fa-list-ul"></i> {{ $frame['controller'] or '123' }}
                                        </a></li>
                                    <li class="active">{{ $frame['title'] or '123' }}</li>
                                </ul>
                                <!-- 页面面包屑 E -->
                            </div>
                            @if (!empty(session()->get('message')))
                                <div class="col-md-12">
                                    <div class="alert alert-success">
                                        <button type="button" class="close" data-dismiss="alert">×</button>
                                        <i class="fa fa-ok-sign"></i><strong>{{ session()->get('message')['msg'] }}</strong> {{ session()->get('message')['explain'] }}
                                    </div>
                                </div>
                            @endif
                            @if (!empty(session()->get('clear')))
                                <div class="col-md-12">
                                    <div class="alert alert-danger">
                                        <button type="button" class="close" data-dismiss="alert">×</button>
                                        <i class="fa fa-ok-sign"></i><strong>{{ session()->get('clear')['msg'] }}</strong> {{ session()->get('clear')['explain'] }}
                                    </div>
                                </div>
                            @endif
                            @if (count($errors) > 0)
                                <div class="col-md-12">
                                    <div class="alert alert-danger">
                                        <ul>
                                            @foreach ($errors->all() as $error)
                                                <li>{{ $error }}</li>
                                            @endforeach
                                        </ul>
                                    </div>
                                </div>
                            @endif

                            @yield('content')
                        </div>
                    </section>
                </section>
                <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen,open"
                   data-target="#nav,html"></a>
            </section>
        </section>
    </section>
</section>
<script src="/public/theme/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="/public/theme/js/bootstrap.js"></script>
<!-- App -->
<script src="/public/theme/js/app.js"></script>
<script src="/public/theme/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/public/theme/js/app.plugin.js"></script>
<script type="text/javascript" src="/public/theme/js/jPlayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="/public/theme/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="/public/theme/js/jPlayer/demo.js"></script>
@yield('js')
</body>

</html>
